package version1;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
/*作业2：参考Mysql封装，写Oracle封装*/
public class Oracle {
    private static  String url;
    private static  String username;
    private static  String password;

    public static void  getParam(String fileName) throws IOException {
        Properties p=new Properties();
        InputStream fis=Mysql.class.getClassLoader().getResourceAsStream(fileName);
        p.load(fis);

        url=p.getProperty("url");
        username=p.getProperty("username");
        password=p.getProperty("password");
        System.out.println("测试链接成功"+url+username+password);
    }
    public static void main(String[] args) throws IOException {
        Mysql.getParam("db_oracle.properties");
    }
}
